<template>
  <!-- 注册页面的整体盒子 -->
  <div class="reg-container">
    <!-- 注册的盒子 -->
    <div class="reg-box">
      <!-- 标题的盒子 -->
      <!-- <div class="title-box"></div> -->
      <div class="box">
        <div class="left" @click="left">LOGIN</div>
        <div class="rigth" ref="rigth" @click="rigth">EVENT</div>
      </div>
      <!-- 登录注册站位 -->
      <router-view></router-view>
      <el-divider></el-divider>
      <!-- <img class="log" src="@/assets/image/index/log.png" alt="" /> -->
      <!-- <img class="foot" src="@/assets/image/bg.852123cds.png" alt="" /> -->
    </div>
  </div>
</template>

<script>
import Reg from '@/project/staggerer/views/Reg/Reg.vue'
import Login from '@/project/staggerer/views/Login/Login.vue'

export default {
  name: 'LogBox',
  components: {
    Reg,
    Login
  },
  data() {
    return {
      activeName: 'second',
      show2: true
    }
  },
  mounted() {
    // 页面刷新跳转到登录页
    this.$store.commit('Ditem/Delement', this.$refs.rigth)
  },
  methods: {
    left() {
      this.$router.push('/staggerer/logbox/reg')
    },
    rigth() {
      this.$router.push('/staggerer/logbox/login')
    }
  }
}
</script>

<style lang="less" scoped>
.reg-container {
  background: url('../../assets/images/19.png') center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
  min-height: 1335px;
  box-sizing: border-box;
  overflow: hidden;
  .log {
    width: 100%;
    margin-top: 30px;
  }
  .foot {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 500px;
  }
  .title-box {
    margin-top: 30px;
  }
  .box {
    display: flex;
    width: 100%;
    margin: 0;
    margin-top: 20px;
    div {
      margin-right: 20px;
      height: 40px;
      text-align: left;
      font-size: 22px;
      color: #786e98;
      cursor: pointer;
    }
    div:hover {
      color: #343042;
      border-bottom: 1px solid #343042;
    }
  }
  .reg-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 665px;
    padding: 0 55px;
    background-color: #fff;
    background: url('../../assets/images/Login2.png');
    border-radius: 3px;
  }
}
</style>
